]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
workspacesDisplay: add spacing around the workspacesView
authorTim Lunn <tim@feathertop.org>
Wed, 14 Nov 2012 20:50:49 +0000 (07:50 +1100)
committerAdel Gadllah <adel.gadllah@gmail.com>
Wed, 21 Nov 2012 19:02:38 +0000 (20:02 +0100)
On additional monitors the workspacesView takes up the entire monitor
and in some cases windows in overview can end up hard against the
edge of the monitor.

https://bugzilla.gnome.org/show_bug.cgi?id=688133

js/ui/workspacesView.js

index a14e6753374fcceb7722b95a7fb0b701561e82ce..e99fe3dc381bfc0ebb4797671f6e47e6701c6a64 100644 (file)
@@ -863,8 +863,9 @@ const WorkspacesDisplay = new Lang.Class({
         let clipX = rtl ? x + controlsVisible : x;
         let clipY = y + (fullHeight - clipHeight) / 2;
 
+        let overviewSpacing = Main.overview._spacing;
         let widthAdjust = this._zoomOut ? controlsNatural : controlsVisible;
-        widthAdjust += Main.overview._spacing;
+        widthAdjust += overviewSpacing;
         width -= widthAdjust;
         if (rtl)
             x += widthAdjust;
@@ -882,10 +883,10 @@ const WorkspacesDisplay = new Lang.Class({
                                                      monitors[i].y,
                                                      monitors[i].width,
                                                      monitors[i].height);
-                this._workspacesViews[m].setGeometry(monitors[i].x,
-                                                     monitors[i].y,
-                                                     monitors[i].width,
-                                                     monitors[i].height);
+                this._workspacesViews[m].setGeometry(monitors[i].x + overviewSpacing/2,
+                                                     monitors[i].y + overviewSpacing/2,
+                                                     monitors[i].width - overviewSpacing,
+                                                     monitors[i].height - overviewSpacing);
                 m++;
             }
         }